clear
set more off
set mem 500000

cd ""

cap log close
log using TABLE9.log, text replace

use "RESTAT_REFORMS.dta", clear

**Table 9: Growth regressions, advanced economies ***
preserve
keep if ADVANCED==1 
sort ifs year
tsset ifs year

xi: reg GDP_Gr lGDP1 TR1 i.ifs i.year, vce(cl ifs)
outreg2 TR1 lGDP1 using TABLE9, bdec(3) nocon word title(Table 9. Reforms and Growth, Advanced Economies) replace


foreach X in CUR100 AG NW DF BK SM CAP100 CAPRES CAPNONRES  {
xi: reg GDP_Gr lGDP1 `X'1 i.ifs i.year, vce(cl ifs)
outreg2 `X'1 lGDP1 using TABLE9, bdec(3) nocon word title(Table 9. Reforms and Growth, Advanced Economies)
}
 
restore
log close
